<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Insert title here</title>
        <script type="text/javascript" src="../jqtool/jquery.tools.min.js">
        </script>
        <style type="text/css">
            body {
                padding: 50px 80px;
                font-family: "Lucida Grande", "bitstream vera sans", "trebuchet ms", sans-serif, verdana;
            }
            
            /* get rid of those system borders being generated for A tags */
            a:active {
                outline: none;
            }
            
            a:focus {
                -moz-outline-style: none;
            }
        </style>
        <style type="text/css">
            /* tooltip styling. by default the element to be styled is .tooltip  */ .tooltip {
                display: none;
                background: transparent url(./img/tooltip/black_arrow.png);
                font-size: 12px;
                height: 70px;
                width: 160px;
                padding: 25px;
                color: #eee;
            }
            
            /* style the trigger elements */ #demo img {
                border: 0;
                cursor: pointer;
                margin: 0 1px;
            }
        </style>
        <script type="text/javascript">
        </script>
    </head>
    <body>
        <!-- a couple of trigger elements -->
        <div id="demo">
            <img src="./img/photos/1.jpg" title="A must have tool for designing better layouts and more intuitive user-interfaces."/>
			<img src="./img/photos/2.jpg" title="Tooltips can be positioned anywhere relative to the trigger element."/>
			<img src="./img/photos/3.jpg" title="Tooltips can contain any HTML such as links, images, forms, tables, etc."/>
			<img src="./img/photos/4.jpg" style="margin-right:0px" title="There are many built-in show/hide effects and you can also make your own."/>
        </div>
        <script type="text/javascript">
            $(function(){
                // create custom animation algorithm for jQuery called "bouncy"
                $.easing.bouncy = function(x, t, b, c, d){
                    var s = 1.70158;
                    if ((t /= d / 2) < 1) 
                        return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
                    return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
                }
                
                // create custom tooltip effect for jQuery Tooltip
                $.tools.tooltip.addEffect("bouncy",    // opening animation
                function(done){
                    this.getTip().animate({
                        top: '+=15'
                    }, 500, 'bouncy', done).show();
                },    // closing animation
                function(done){
                    this.getTip().animate({
                        top: '-=15'
                    }, 500, 'bouncy', function(){
                        $(this).hide();
                        done.call();
                    });
                });
                
                $("#demo img[title]").tooltip({
                    effect: 'bouncy'
                });
            });
        </script>
    </body>
</html>
